﻿// =================================================================== 
// Module说明
//====================================================================
// 创建时间：2018-12-17 14:35:36
// 负责人：liucx
// ===================================================================
using System;
using System.Data;
using System.Collections.Generic;
using OF.Utility;
using OF.Component.Model;
using OF.Component.IDAL;
using OF.Component.Factory;
namespace OF.Component.BLL
{

    /// <summary>
    ///
    /// </summary>
    public partial class MessagePoolOperate
    {
        private static readonly IMessagePool dal = MessagePool.CreateInstance();



        public static int GetMaxID()
        {
            return dal.GetMaxID();
        }

        public static long Insert(MessagePoolInfo info)
        {
            long reValue = dal.Insert(info);
            return reValue;
        }

        public static void Update(MessagePoolInfo info)
        {
            dal.Update(info);
        }

        public static void Delete(long messagePoolID)
        {

            dal.Delete(messagePoolID);
        }


        public static MessagePoolInfo GetByID(long messagePoolID)
        {
           return dal.GetByID(messagePoolID);
          
        }
    }

}